#include<iostream>
#include<string.h>
#include<stdarg.h>
#include"Log.hpp"
#define size 60

char buffer[size];
void MyPrint(const char*format,...)
{
    int ret;
    va_list args;
    va_start(args,format);
    ret = vsnprintf(buffer,size,format,args);
    va_end(args);
    printf("ret=%d,str=%s\n",ret,buffer);
}

int main()
{
    MyPrint("12345%dhahahaha",100);
    lg.LogMessage(Info,"I am %s,%d years old","chen",20);
    
}